<br />
<p>&nbsp;</p>
<?php echo anchor(base_url() . 'admin/member/insert', '+ Tambah', array('title' => 'Tambah berita.')); ?>
<table width="100%">
    <tr>
        <th width="10">No</th>
        <th>UID</th>
        <th>Name</th>
        <th>Status</th>
        <th width="120">Action</th>
    </tr>
    <?php
    if ($member) {
        $i = 1;
        foreach ($member as $value) {
            ?>
            <tr>
                <td><?php echo $i++; ?></td>
                <td><?php echo $value['uid'] ?></td>
                <td><?php echo $value['name'] ?></td>
                <td><?php echo ($value['status'] == 0?"Submit":($value['status'] == 1?"Pay":($value['status'] == 2?"approve":""))) ?></td>
                <td><?php echo ($value['status'] == 1?anchor(base_url() . 'admin/member/approval/' . $value['uid'], 'Approval', array('title' => 'Approval')):"Approval"); ?> | <?php echo anchor(base_url() . 'admin/member/detil/' . $value['uid'], 'View', array('title' => 'View')); ?></td>
            </tr>
            <?php
        }
    }
    ?>
</table>
<p>&nbsp;</p>